Page({
  data: {
    nums: 0,
    isloading: false
  },
  logins() {
    console.log('点击了登陆')
    wx.showLoading({
      title: '加载中...'
    })
    // wx.showToast({
    //   title: '点击了登录',
    // })
    wx.showActionSheet({
      itemList: ['A.杜甫', 'B.李白', 'C.程振'],
      success(res) {
        wx.hideLoading()
      },
      fail(res) {
        wx.hideLoading()
      }
    })
  },
  longpress() {
    this.longpress.bind
    console.log('长按了登陆')
    let num = this.data.nums
    let a = this.data.isloading
    num++
    a = !a
    this.setData({
      nums: num,
      isloading: a
    })
  }
})